//
//  KSActionSheet.h
//  INMOTION
//
//  Created by 孙凯旋 on 14-9-15.
//  Copyright (c) 2014年 Inmotion. All rights reserved.
//

#import <UIKit/UIKit.h>

@class KSActionSheet;

@protocol KSActionSheetDelegate <NSObject>

@optional
- (void)ksActionSheetDidDismiss:(KSActionSheet *)actionSheet;

- (void)ksActionSheetDidConfirm:(KSActionSheet *)actionSheet;

@end

typedef NS_ENUM(NSInteger, KSActionStyle) {
    KSActionStyleSimple,
    KSActionStyleWithToolbar,
};

@interface KSActionSheet : UIView

@property(nonatomic, strong) UIView *backgroundView;
@property(nonatomic, strong) UIView *contentView;
@property(nonatomic, weak) id <KSActionSheetDelegate> delegate;
@property(nonatomic, strong) UIToolbar *toolbar;
@property(nonatomic, strong) UIBarButtonItem *confirmButton;

- (id)initWithContentView:(UIView *)view andStyle:(KSActionStyle)style;

- (void)show;

- (void)closeView;

@end
